import request from '@/utils/request'

// 查询常规备餐列表
export function listPre(query) {
  return request({
    url: '/system/regularmealpre/list',
    method: 'get',
    params: query
  })
}

// 查询常规备餐详细
export function getPre(id) {
  return request({
    url: '/system/regularmealpre/' + id,
    method: 'get'
  })
}

// 新增常规备餐
export function addPre(data) {
  return request({
    url: '/system/regularmealpre',
    method: 'post',
    data: data
  })
}

// 修改常规备餐
export function updatePre(data) {
  return request({
    url: '/system/regularmealpre',
    method: 'put',
    data: data
  })
}

// 删除常规备餐
export function delPre(id) {
  return request({
    url: '/system/regularmealpre/' + id,
    method: 'delete'
  })
}

// 导出常规备餐
export function exportPre(query) {
  return request({
    url: '/system/regularmealpre/export',
    method: 'get',
    params: query
  })
}